package net.wanho.customerManage.service;

import net.wanho.commons.exception.DaoException;
import net.wanho.commons.exception.ServiceException;
import net.wanho.customerManage.po.LinkMan;
import net.wanho.customerManage.query.LinkManQuery;

import java.util.List;

public interface LinkManService {
    List<LinkMan> selectAllLinkMan() throws ServiceException;

    LinkMan selectByIdLinkMan(Integer linkMainId) throws ServiceException ;

    List<LinkMan> selectByCondLinkMan(LinkManQuery linkManQuery) throws ServiceException ;

    /**
     * 新增
     * @param linkMan
     * @return 1 新增成功 -1 新增失败
     * @throws DaoException
     */
    Integer insertLinkMan(LinkMan linkMan) throws ServiceException ;

    void updateLinkMan(LinkMan linkMan) throws ServiceException ;
}
